The program will proceed normally.
Newborn babies don't weigh 640 ounces
so this is mistaken data.
But it is an acceptable number as far as the INPUT
statement is concerned so it continues without complaint:
Enter number of ounces ? 640 Number of pounds 40
The INPUT
statement just looks for a number;
it does not know what the number is supposed to mean.
It is up to the user to be sure it is the number wanted.
Part of the reason for having informative prompts is
to tell the user what data is expected.
Once a program is given data, it just mechanically plods along doing exactly what the statements of the program tell it to do. If the input values are not correct, then it will proceed step by step and produce a result that is not correct.
The phrase "Garbage In, Garbage Out" is a reminder that a computed result is only correct if the input data is correct.
In the past, it was common for people to think that computers were "giant brains" and that everything that came out of them was perfect. Most people know better, now.
The INPUT
statement keeps working until you
have entered an acceptable number.
When you see the prompt "Redo from start"
what do you think it means?
INPUT
statement.